﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.Serialization;
using System.Text;

namespace ST.Common.Util.Mvc
{
	/// <summary>
	/// 获取认证信息异常
	/// </summary>
	public class AuthException : Exception
	{
		/// <summary>
		/// 响应代码
		/// </summary>
		public int StatusCode { get; set; }

		public AuthException() : base()
		{
			StatusCode = (int)HttpStatusCode.Forbidden;
		}

		public AuthException(string msg) : base(msg)
		{
			StatusCode = (int)HttpStatusCode.Forbidden;
		}

		public AuthException(string msg, Exception innerException) : base(msg, innerException)
		{
			StatusCode = (int)HttpStatusCode.Forbidden;
		}

		public AuthException(SerializationInfo info, StreamingContext context) : base(info, context)
		{
			StatusCode = (int)HttpStatusCode.Forbidden;
		}
	}
}
